integer

pure constructor(value: text, [radix: integer])

Parses a signed string representation of an integer.

Since

0.6.0

Parameters

value

The string to be parsed.

radix

The radix to be used in interpreting value. Defaults to 10 if not provided.


pure constructor(value: decimal)

Converts a decimal to an integer, rounding towards 0.

Since

0.9.1

Parameters

value

The decimal value to be converted to an integer.